package com.xyoto.community.enums;

import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * @author coderFu
 * @create 2021/10/1
 *匿名用户返回枚举
 */


public enum SquareModuleConfigEnum implements Code {


    SQUARE_MODULE_CONFIG_UPDATE_FAIL(4300,"广场模块配置更新失败"),
    SQUARE_MODULE_CONFIG_ADD_FAIL(4301,"广场类模块配置添加失败"),
    SQUARE_MODULE_CONFIG_DELETE_FAIL(4302,"广场模块配置删除失败"),
    SQUARE_MODULE_CONFIG_ORDERS_OUT_OF_BOUND(4303,"选择的顺序不合法")
    ;




   private int code;
   private String msg;
    SquareModuleConfigEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }


    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
